package com.hui.bean;

import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 房间实体
 */
@Data
public class RoomBean {

    /**
     * 房间id
     */
    private int roomId;

    /**
     * 房间地址
     */
    private String roomAddress;

    /**
     * 可容纳人数
     */
    private int capNum;

    /**
     * 已入住人数
     */
    private int inNum;

    /**
     * 房间类型
     *      值只有两个:
     *      M:男性
     *      F女性
     *
     */
    private String roomType;

    /**
     * 房租价格
     */
    private int rentPrice;

    /**
     * 户型
     */
    private String buildingType;

    /**
     * 支付方式 ：月付、季付、年付
     */
    private String payType;

    /**
     * 房东名字
     */
    private String roomHost;

    /**
     * 房东电话
     */
    private String hostTel;

    /**
     * 房间状态：
     *      只有两种值
     *      Y:正常
     *      N:设备损坏
     */
    private String roomStatus;

    /**
     * 租房日期
     */
    private Date rentDate;

    /**
     * 一个房间里面住的学生
     */
    private List<StudentBean> studentBeanList;

    /**
     * 房间设施记录
     */
    private List<RecordBean> recordBeanList;

    public RoomBean() {
    }

    public RoomBean(int roomId, String roomAddress, int capNum, int inNum, String roomType, int rentPrice, String buildingType, String payType, String roomHost, String hostTel, String roomStatus, Date rentDate) {
        this.roomId = roomId;
        this.roomAddress = roomAddress;
        this.capNum = capNum;
        this.inNum = inNum;
        this.roomType = roomType;
        this.rentPrice = rentPrice;
        this.buildingType = buildingType;
        this.payType = payType;
        this.roomHost = roomHost;
        this.hostTel = hostTel;
        this.roomStatus = roomStatus;
        this.rentDate = rentDate;
    }

    public RoomBean(int roomId, String roomAddress, int capNum, int inNum, String roomType, int rentPrice, String buildingType, String payType, String roomHost, String hostTel, String roomStatus, Date rentDate, List<StudentBean> studentBeanList, List<RecordBean> recordBeanList) {
        this.roomId = roomId;
        this.roomAddress = roomAddress;
        this.capNum = capNum;
        this.inNum = inNum;
        this.roomType = roomType;
        this.rentPrice = rentPrice;
        this.buildingType = buildingType;
        this.payType = payType;
        this.roomHost = roomHost;
        this.hostTel = hostTel;
        this.roomStatus = roomStatus;
        this.rentDate = rentDate;
        this.studentBeanList = studentBeanList;
        this.recordBeanList = recordBeanList;
    }
}

